import re
print(re.search(r'www', 'www.runoob.com',re.M|re.I))

s=">haadha>>dfh>aha>>adh>>ahf>>haadhsdh>fdhh"
print(re.search('(.*)+>',s))